package com.yanfan.energy.mapper;

import com.yanfan.energy.domain.ConfigurationCop;
import com.yanfan.iot.domain.Device;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * cop配置Mapper接口
 *
 * @author kerwincui
 * @date 2025-07-15
 */
@Repository
public interface ConfigurationCopMapper
{
    /**
     * 查询cop配置
     *
     * @return cop配置
     */
    public ConfigurationCop selectConfigurationCopByCopId(Long copId);

    /**
     * 查询cop配置列表
     *
     * @param configurationCop cop配置
     * @return cop配置集合
     */
    public List<ConfigurationCop> selectConfigurationCopList(ConfigurationCop configurationCop);

    /**
     * 新增cop配置
     *
     * @param configurationCop cop配置
     * @return 结果
     */
    public int insertConfigurationCop(ConfigurationCop configurationCop);

    /**
     * 修改cop配置
     *
     * @param configurationCop cop配置
     * @return 结果
     */
    public int updateConfigurationCop(ConfigurationCop configurationCop);

    /**
     * 删除cop配置
     *
     * @param copId cop配置主键
     * @return 结果
     */
    public int deleteConfigurationCopByCopId(Long copId);

    List<ConfigurationCop> selectConfigurationCopListBySerialNumber(String serialNumber);

    Device selectDeviceBySerialNumber(String serialNumber);
}
